package com.qianyu.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;


import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author gs
 * @since 2020-12-23
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class SystemAuthority implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String authorityName;

    private Integer authorityPid;

    private String authorityPath;

    private String authorityCreatedate;

    private String authorityDesc;

    private String authorityStatus;

    private String authorityIco;

    @TableField(exist = false)
    private List<SystemAuthority> children;
}
